#ifndef D3D10_UTILS_GRID_H
#define D3D10_UTILS_GRID_H

#include "d3dUtil.h"

namespace D3D10Utils
{
	class Grid
	{
	public:
		Grid(const UINT rows, const UINT columns);
		~Grid();

		void init(ID3D10Device * const device, const float cellSpacingX, const float cellSpacingZ);
		void draw();

	private:
		ID3D10Device *md3dDevice;
		ID3D10Buffer *mVertexBuffer;
		ID3D10Buffer *mIndexBuffer;

		const DWORD mNumVertices;
		const DWORD mNumFaces;

		const UINT mRows;
		const UINT mColumns;
	};
}

#endif // D3D10_UTILS_GRID_H
